package cn.kgc.feign;

import cn.kgc.grace.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author kk
 * @version 1.0
 */
@FeignClient(value = "user-service",fallback = UsersFeifnClientImpl.class)
public interface UsersFeignClient {
    @PostMapping("/user/hrDetail")
    GraceJSONResult hrDetail(@RequestParam("id") String id);

    @PostMapping("/user/bankend/userIdList")
    GraceJSONResult userIdList(@RequestParam("userName") String userName);

    @PostMapping("/user/updateUserRole")
    GraceJSONResult updateUserRole(
        @RequestParam("commitUserId") String commitUserId,
        @RequestParam("companyId") String companyId
    );

    @PostMapping("/user/detail2")
    GraceJSONResult detail(@RequestParam("id") String id);
}